-
Notifications
You must be signed in to change notification settings - Fork 38
/
routes
28 lines (26 loc) · 2.5 KB
/
routes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Routes
# This file defines all application routes (Higher priority routes first)
# ~~~~
GET /ping @controllers.Application.ping
# Authentication Routes
GET /auth/authenticate @controllers.AuthController.authenticate
GET /auth/callback @controllers.AuthController.callback(code: String)
GET /auth/signout @controllers.AuthController.signOut
POST /auth/signIn @controllers.AuthController.signIn(redirect:String ?= "")
GET /auth/generateAPIKey @controllers.AuthController.generateAPIKey(userId:Long ?= -1)
POST /auth/resetAllAPIKeys @controllers.AuthController.resetAllAPIKeys
DELETE /auth/deleteUser/userId @controllers.AuthController.deleteUser(userId:Long)
GET /auth/addUser/:userId/toProject/:projectId @controllers.AuthController.addUserToProject(userId:Long, projectId:Long)
# Random functionality routes
GET /clearCaches @controllers.Application.clearCaches
PUT /runJob/:name @controllers.Application.runJob(name:String, action:String ?= "")
GET /ws @org.maproulette.framework.controller.WebSocketController.socket
GET /graphql/ide @org.maproulette.framework.controller.GraphQLController.graphiql
POST /graphql @org.maproulette.framework.controller.GraphQLController.graphqlBody
# Routes for /docs redirect and serving the swagger-ui
GET /docs @controllers.Application.redirectDocs()
GET /docs/swagger-ui/*file @controllers.Assets.at(path:String="/public/swagger", file:String)
### NoDocs ###
GET /assets/*file @controllers.Assets.versioned(path="/public", file: Asset)
-> /api/v2 generated.Routes
GET /*path/ @controllers.Application.untrail(path:String)