Skip to content

samin-z/yoummday-refactoring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

❗ Please do not fork this repository ❗

Yoummday Refactoring Task

This project only includes the route GET /has_permission/{token} which has to decide if the provided token exists and has the required permission. Your task is to refactor the endpoint and create tests, if necessary.

Requirements

  • php 8.1
  • composer

Installation

$ composer install

Run

$ php src/main.php

Expected output:

[INFO] Registering GET /has_permission/{token}
[INFO] Server running on 127.0.0.1:1337

Testing

$ php vendor/bin/phpunit Test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages