Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 590 Bytes

README.md

File metadata and controls

29 lines (24 loc) · 590 Bytes

❗ 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