mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX] fix login controller, fix public & private endpoints, add cors
This commit is contained in:
committed by
Darío Lodeiros
parent
6f672029f5
commit
af960fcec3
@@ -5,9 +5,11 @@ class BaseRestPrivateApiController(main.RestController):
|
||||
_root_path = "/api/"
|
||||
_collection_name = "pms.private.services"
|
||||
_default_auth = "jwt_api_pms"
|
||||
_default_cors = "*"
|
||||
|
||||
|
||||
class BaseRestPublicApiController(main.RestController):
|
||||
_root_path = "/auth/"
|
||||
_collection_name = "pms.public.services"
|
||||
_default_auth = "public"
|
||||
_default_cors = "*"
|
||||
|
||||
Reference in New Issue
Block a user