add jwt
This commit is contained in:
12
id.saladeaula.digital/app/util.py
Normal file
12
id.saladeaula.digital/app/util.py
Normal file
@@ -0,0 +1,12 @@
|
||||
import os
|
||||
|
||||
ROOT = os.path.abspath(os.path.dirname(__file__))
|
||||
|
||||
|
||||
def get_file_path(name):
|
||||
return os.path.join(ROOT, name)
|
||||
|
||||
|
||||
def read_file_path(name):
|
||||
with open(get_file_path(name)) as f:
|
||||
return f.read()
|
||||
Reference in New Issue
Block a user